*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7b3fa0;
    --purple-dark: #4a1878;
    --purple-light: #a855c8;
    --gold: #c8a84b;
    --gold-light: #e2c97e;
    --dark: #1a1a1a;
    --text: #333333;
    --muted: #666666;
    --light-bg: #f8f5fc;
    --border: #e0d4ee;
    --white: #ffffff;
    --footer-bg: #1e1528;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Source Sans 3', system-ui, sans-serif;
    --max-w: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================
       TOP BAR
    ===================== */
.top-bar {
    background: var(--purple-dark);
    padding: 5px 0;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.top-bar-left {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

    .top-bar-left a {
        color: var(--gold-light);
        transition: color .2s;
    }

        .top-bar-left a:hover {
            color: #fff;
        }

.top-bar-right {
    display: flex;
    gap: 14px;
}

    .top-bar-right a {
        font-size: 12px;
        color: rgba(255,255,255,0.75);
        transition: color .2s;
    }

        .top-bar-right a:hover {
            color: #fff;
        }

        .top-bar-right a.active {
            color: #fff;
            font-weight: 700;
            border-bottom: 1px solid rgba(255,255,255,0.55);
        }

/* =====================
       SITE HEADER (logo + tagline + register)
    ===================== */
.site-header {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

.site-logo img {
    height: 62px;
    width: auto;
}

.header-tagline {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--purple);
    text-align: center;
    flex: 1;
    padding: 0 16px;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .header-tagline {
        display: none;
    }
}

.header-register {
    background: var(--purple);
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}

    .header-register:hover {
        background: var(--purple-light);
    }

/* =====================
       STICKY MAIN NAV  ← sticky element
    ===================== */
.main-nav {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 3px 14px rgba(0,0,0,0.28);
}

    .main-nav .container {
        display: flex;
        align-items: stretch;
    }

/* hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    flex-direction: column;
    gap: 5px;
    align-self: center;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: .3s;
    }

.nav-list {
    display: flex;
    align-items: stretch;
    flex: 1;
}

    .nav-list > li {
        position: relative;
        display: flex;
        align-items: stretch;
    }

        .nav-list > li > a {
            display: flex;
            align-items: center;
            color: rgba(255,255,255,0.92);
            padding: 14px 15px;
            font-size: 13.5px;
            font-weight: 600;
            white-space: nowrap;
            letter-spacing: .02em;
            transition: background .2s, color .15s;
        }

            .nav-list > li > a:hover,
            .nav-list > li:hover > a,
            .nav-list > li > a.active {
                background: rgba(255,255,255,0.15);
                color: #fff;
            }

/* caret */
.caret {
    margin-left: 5px;
    font-size: 10px;
    opacity: .75;
    display: inline-block;
    transition: transform .2s;
}

.nav-list > li:hover > a .caret {
    transform: rotate(180deg);
}

/* dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    border-top: 3px solid var(--gold);
    z-index: 300;
}

.nav-list li:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 13.5px;
    border-bottom: 1px solid #f0e8f8;
    transition: background .15s, color .15s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--purple);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .nav-list.open {
            display: flex;
        }

    .main-nav .container {
        flex-wrap: wrap;
    }

    .nav-list > li {
        flex-direction: column;
        align-items: stretch;
    }

        .nav-list > li > a {
            padding: 12px 20px;
        }

    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--gold);
        background: rgba(0,0,0,0.18);
        margin-left: 16px;
    }

        .dropdown li a {
            color: rgba(255,255,255,0.85);
            border-color: rgba(255,255,255,0.08);
        }

            .dropdown li a:hover {
                background: rgba(255,255,255,0.1);
                color: #fff;
            }

    .nav-list li:hover .dropdown {
        display: block;
    }
}

/* =====================
       HERO SLIDER
    ===================== */
.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #3b1f5e 60%, var(--purple) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30,21,40,0.52) 0%, rgba(74,24,120,0.58) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

    .hero-inner h1 {
        font-family: var(--serif);
        font-size: clamp(28px, 5vw, 54px);
        font-weight: 700;
        text-shadow: 0 3px 16px rgba(0,0,0,0.45);
        margin-bottom: 14px;
        line-height: 1.2;
        max-width: 800px;
    }

    .hero-inner p {
        font-size: clamp(14px, 2vw, 18px);
        opacity: .88;
        max-width: 640px;
        margin: 0 auto 30px;
        line-height: 1.65;
    }

.hero-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 13px 36px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;
    box-shadow: 0 4px 20px rgba(200,168,75,0.45);
    transition: transform .2s, box-shadow .2s;
}

    .hero-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(200,168,75,0.55);
    }

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

    .hero-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,0.45);
        cursor: pointer;
    }

        .hero-dots span.active {
            background: #fff;
        }

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

/* =====================
       SECTION COMMONS
    ===================== */
section {
    padding: 70px 0;
}

.section-title {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 34px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 28px;
        background: var(--gold);
        border-radius: 3px;
        flex-shrink: 0;
    }

.more-link {
    display: inline-block;
    margin-top: 26px;
    color: var(--purple);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--purple);
    padding-bottom: 2px;
    letter-spacing: .03em;
    transition: color .2s, border-color .2s;
}

    .more-link:hover {
        color: var(--purple-light);
        border-color: var(--purple-light);
    }

/* =====================
       ABOUT
    ===================== */
.about-section {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.about-text h2 {
    font-family: var(--serif);
    font-size: 27px;
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-quotes {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid var(--gold);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .about-quotes p {
        font-family: var(--serif);
        font-size: 15.5px;
        color: var(--purple-dark);
        font-weight: 600;
        font-style: italic;
        margin: 0;
    }

.about-image img {
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(123,63,160,0.2);
    width: 100%;
    height: 460px;
    object-fit: cover;
}

/* =====================
       NEWS
    ===================== */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: transform .25s, box-shadow .25s;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 40px rgba(123,63,160,0.15);
    }

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

    .news-meta time {
        font-size: 12px;
        color: var(--muted);
    }

.news-tag {
    background: var(--light-bg);
    color: var(--purple);
    padding: 2px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.news-title {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 10px;
    transition: color .2s;
}

.news-card:hover .news-title {
    color: var(--purple);
}

.news-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* =====================
       UPCOMING COMPETITIONS
    ===================== */
.events-section {
    background: var(--light-bg);
}

.events-placeholder {
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 56px 24px;
    text-align: center;
    color: var(--muted);
}

    .events-placeholder .ep-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .events-placeholder h3 {
        font-family: var(--serif);
        color: var(--purple);
        font-size: 20px;
        margin-bottom: 8px;
    }

    .events-placeholder p {
        font-size: 14px;
    }

/* =====================
       RECENT RESULTS
    ===================== */
.results-section {
    background: var(--white);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: box-shadow .2s, border-color .2s;
}

    .result-card:hover {
        box-shadow: 0 6px 24px rgba(123,63,160,0.12);
        border-color: var(--purple-light);
    }

    .result-card img {
        width: 130px;
        height: 82px;
        object-fit: cover;
        border-radius: 5px;
        flex-shrink: 0;
    }

.result-info h4 {
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color .2s;
}

.result-card:hover .result-info h4 {
    color: var(--purple);
}

.result-info .meta {
    font-size: 12px;
    color: var(--muted);
}

/* =====================
       CTA BANNER
    ===================== */
.cta-banner {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    padding: 66px 0;
    text-align: center;
    color: #fff;
}

    .cta-banner h2 {
        font-family: var(--serif);
        font-size: clamp(20px, 3vw, 30px);
        font-weight: 700;
        margin-bottom: 24px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.35;
    }

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(200,168,75,0.4);
    letter-spacing: .03em;
    transition: transform .2s, box-shadow .2s;
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(200,168,75,0.55);
    }

/* =====================
       FOOTER
    ===================== */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.72);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
    gap: 44px;
    padding-bottom: 50px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-family: var(--serif);
    font-size: 15px;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200,168,75,0.35);
    letter-spacing: .04em;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.85;
}

.footer-col a {
    color: rgba(255,255,255,0.68);
    transition: color .2s;
}

    .footer-col a:hover {
        color: var(--gold-light);
    }

.footer-logo img {
    height: 52px;
    margin-bottom: 14px;
}

.footer-email {
    font-size: 13.5px;
    margin-bottom: 18px;
}

    .footer-email a {
        color: var(--gold-light);
    }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

    .social-links a {
        background: rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.78);
        padding: 6px 13px;
        border-radius: 4px;
        font-size: 12.5px;
        font-weight: 600;
        transition: background .2s, color .2s;
    }

        .social-links a:hover {
            background: var(--gold);
            color: var(--dark);
        }

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
}

    .insta-grid img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 3px;
        filter: brightness(0.78);
        transition: filter .2s;
    }

        .insta-grid img:hover {
            filter: brightness(1);
        }

.insta-follow {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 600;
    transition: color .2s;
}

    .insta-follow:hover {
        color: #fff;
    }

.wechat-qr img {
    width: 110px;
    border-radius: 6px;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.09);
    padding: 18px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.38);
}

/* =====================
       BACK TO TOP
    ===================== */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--purple);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: background .2s, transform .2s;
    z-index: 999;
}

    .back-to-top:hover {
        background: var(--purple-light);
        transform: translateY(-3px);
    }
